package org.metasketch.demo.project.load;

import java.util.HashMap;
import java.util.Map;

import org.metasketch.model.CommonIdentified;
import org.metasketch.model.loader.GraphNode;

public class TransfomPackage {

	Map<CommonIdentified, GraphNode> elementNodes = new HashMap<CommonIdentified, GraphNode>();

	Map<String, CommonIdentified> elements = new HashMap<String, CommonIdentified>();

	public Map<CommonIdentified, GraphNode> getElementNodes() {
		return elementNodes;
	}

	public void setElementNodes(Map<CommonIdentified, GraphNode> elementNodes) {
		this.elementNodes = elementNodes;
	}

	public Map<String, CommonIdentified> getElements() {
		return elements;
	}

	public void setElements(Map<String, CommonIdentified> elements) {
		this.elements = elements;
	}

	public void addElement(CommonIdentified element, GraphNode node) {
		elementNodes.put(element, node);
		elements.put(element.getId(), element);
	}

}
